﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RentalCalcV7
{
    public class ChildrenPrice: Price
    {
        public override int GetPriceCode()
        {
            return Movie.CHILDREN;
        }

        public override double GetCharge(int daysRented)
        {
            double result = 1;

            if (daysRented > 2)
            {
                result += (daysRented - 2) * 1;
            }

            return result;    
        }        
    }
}
